package com.example.panpan.domain;

import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.Collection;

public class User {
    private long id;// 用户ID
    private String username;// 用户名
    private String password;// 密码

    public User(String username, String password, Collection<SimpleGrantedAuthority> collection) {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String toString(){
        return "User[id="+id+",username="+username+",password="+password+"]";
    }

}
